package com.design01_builder.pattern04_builder.example01.builder;

import com.design01_builder.pattern04_builder.example01.product.Bike;

/**
 * @ClassName MobikeBuilder
 * @Description 膜拜单车建造者
 * @Author zhangjunhao
 * @DATE 2023/9/3 1:36
 */
public class MobikeBuilder extends Builder {

    @Override
    public void buildFrame() {
        System.out.println("建造车架");
        mBike.setFrames("聚合金车架");
    }


    @Override
    public void buildSeat() {
        System.out.println("制作车座");
        mBike.setSeat("聚合金车座");
    }

    @Override
    public Bike createBike() {
        return mBike;
    }



}